from django.urls import path, include

from main.models import Files
from . import views
from .views import (regist, login, logout, center, home, change, active,
                    FilesCreateView, FilesListView,FilesDeleteView,FilesUpdateView,
                    ManagefilesView)

app_name = 'user'
urlpatterns = [
    # path('', home, name='home'),
    path('regist/', regist, name='regist'),
    path('login/', login, name='login'),

    path('logout/', logout, name='logout'),

    path('center/', center, name='center'),
    path('change/', change, name='change'),
    path('active/<int:id>/', active, name='active'),

    path('files_create/', FilesCreateView.as_view(), name='files_create'),

    path('files_list/', FilesListView.as_view(), name='files_list'),
    path('manage_files/', ManagefilesView, name='manage_files'),


    path('files_update/<int:pk>/', FilesUpdateView.as_view(), name='files_update'),
    path('files_detele/<int:pk>/', FilesDeleteView.as_view(), name='files_delete'),
]
